package org.example.wxdemo.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.Map;

@Data
public class WxTemplateMessage {
    @JsonProperty("touser")
    private String toUser;
    
    @JsonProperty("template_id")
    private String templateId;
    
    private String url;
    
    private Miniprogram miniprogram;
    
    @JsonProperty("client_msg_id")
    private String clientMsgId;
    
    private Map<String, TemplateData> data;
    
    @Data
    public static class Miniprogram {
        private String appid;
        private String pagepath;
    }
    
    @Data
    public static class TemplateData {
        private String value;
    }
} 